package com.infore.dataReceiving.entity;
import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;
import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 手工数据实体类
 */
@Entity
@Table(name="MANUAL_DATA")
public class ManualData implements Serializable {
    
    private static final long serialVersionUID = 1L;

    @Id
    @Column(name="MANUAL_ID")
    @GeneratedValue(generator = "uuidGenerator")
    @GenericGenerator(name = "uuidGenerator", strategy = "uuid") // UUID生成策略
    private String manualId;
    
    /** 站点mn **/
    @Column(name="STATION_CODE", length = 20)
    private String stationCode;
    
    /** 因子编码 **/
    @Column(name="factorCode", length = 20)
    private String factorCode;
    
    /** 数据时间 **/
    @Temporal(TemporalType.TIMESTAMP)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name="DATA_TIME", length = 20)
    private Date dataTime;
    
    /** 浓度平均值 **/
    @Column(name="VALUE", length = 20)
    private String value;
    
    /** 数据状态标识 **/
    @Column(name="DATA_TYPE", length = 10)
    private String dataType;

    public String getManualId() {
        return manualId;
    }

    public void setManualId(String manualId) {
        this.manualId = manualId;
    }

    public String getStationCode() {
        return stationCode;
    }

    public void setStationCode(String stationCode) {
        this.stationCode = stationCode;
    }

    public String getFactorCode() {
        return factorCode;
    }

    public void setFactorCode(String factorCode) {
        this.factorCode = factorCode;
    }

    public Date getDataTime() {
        return dataTime;
    }

    public void setDataTime(Date dataTime) {
        this.dataTime = dataTime;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getDataType() {
        return dataType;
    }

    public void setDataType(String dataType) {
        this.dataType = dataType;
    }
    
}
